<?php
/**
 * Name: UserLogic.class.php
 * Description: 用户逻辑层
 * User: DIY
 * Date: 2016/9/25
 * Time: 17:20
 */

namespace Common\Logic;


use Common\Model\UserModel;

class UserLogic
{
    private $User; //用户表对象

    public function __construct(){

        $this->User = new UserModel();
    }

    /*
     * 用户登录
     * 等待熊大完善
     * @param username 用户名
     * @param password 密码
     * @return array()
     * */
    public function login($username,$password){
        return $this->User->where(array('user_name'=>$username))->find();
    }
}